3.91 \(\int \left (d+e x^n\right )^3 \left (a+b x^n+c x^{2 n}\right )^p \, dx\)

Optimal. Leaf size=606 \[ d^3 x \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (\frac{1}{n};-p,-p;1+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )+\frac{3 d^2 e x^{n+1} \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (1+\frac{1}{n};-p,-p;2+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{n+1}+\frac{3 d e^2 x^{2 n+1} \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (2+\frac{1}{n};-p,-p;3+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{2 n+1}+\frac{e^3 x^{3 n+1} \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (3+\frac{1}{n};-p,-p;4+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{3 n+1} \]

[Out]

(3*d^2*e*x^(1 + n)*(a + b*x^n + c*x^(2*n))^p*AppellF1[1 + n^(-1), -p, -p, 2 + n^
(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(
(1 + n)*(1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]))^p*(1 + (2*c*x^n)/(b + Sqrt[b^2 -
 4*a*c]))^p) + (3*d*e^2*x^(1 + 2*n)*(a + b*x^n + c*x^(2*n))^p*AppellF1[2 + n^(-1
), -p, -p, 3 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*x^n)/(b + Sqrt[
b^2 - 4*a*c])])/((1 + 2*n)*(1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]))^p*(1 + (2*c*x
^n)/(b + Sqrt[b^2 - 4*a*c]))^p) + (e^3*x^(1 + 3*n)*(a + b*x^n + c*x^(2*n))^p*App
ellF1[3 + n^(-1), -p, -p, 4 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*
x^n)/(b + Sqrt[b^2 - 4*a*c])])/((1 + 3*n)*(1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])
)^p*(1 + (2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]))^p) + (d^3*x*(a + b*x^n + c*x^(2*n))^
p*AppellF1[n^(-1), -p, -p, 1 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c
*x^n)/(b + Sqrt[b^2 - 4*a*c])])/((1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]))^p*(1 +
(2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]))^p)

_______________________________________________________________________________________

Rubi [A]  time = 1.3927, antiderivative size = 606, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192 \[ d^3 x \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (\frac{1}{n};-p,-p;1+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )+\frac{3 d^2 e x^{n+1} \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (1+\frac{1}{n};-p,-p;2+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{n+1}+\frac{3 d e^2 x^{2 n+1} \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (2+\frac{1}{n};-p,-p;3+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{2 n+1}+\frac{e^3 x^{3 n+1} \left (\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}+1\right )^{-p} \left (\frac{2 c x^n}{\sqrt{b^2-4 a c}+b}+1\right )^{-p} \left (a+b x^n+c x^{2 n}\right )^p F_1\left (3+\frac{1}{n};-p,-p;4+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}},-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{3 n+1} \]

Warning: Unable to verify antiderivative.

[In]  Int[(d + e*x^n)^3*(a + b*x^n + c*x^(2*n))^p,x]

[Out]

(3*d^2*e*x^(1 + n)*(a + b*x^n + c*x^(2*n))^p*AppellF1[1 + n^(-1), -p, -p, 2 + n^
(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(
(1 + n)*(1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]))^p*(1 + (2*c*x^n)/(b + Sqrt[b^2 -
 4*a*c]))^p) + (3*d*e^2*x^(1 + 2*n)*(a + b*x^n + c*x^(2*n))^p*AppellF1[2 + n^(-1
), -p, -p, 3 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*x^n)/(b + Sqrt[
b^2 - 4*a*c])])/((1 + 2*n)*(1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]))^p*(1 + (2*c*x
^n)/(b + Sqrt[b^2 - 4*a*c]))^p) + (e^3*x^(1 + 3*n)*(a + b*x^n + c*x^(2*n))^p*App
ellF1[3 + n^(-1), -p, -p, 4 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*
x^n)/(b + Sqrt[b^2 - 4*a*c])])/((1 + 3*n)*(1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])
)^p*(1 + (2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]))^p) + (d^3*x*(a + b*x^n + c*x^(2*n))^
p*AppellF1[n^(-1), -p, -p, 1 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c
*x^n)/(b + Sqrt[b^2 - 4*a*c])])/((1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]))^p*(1 +
(2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]))^p)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 165.131, size = 520, normalized size = 0.86 \[ d^{3} x \left (\frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (\frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (a + b x^{n} + c x^{2 n}\right )^{p} \operatorname{appellf_{1}}{\left (\frac{1}{n},- p,- p,1 + \frac{1}{n},- \frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}},- \frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} \right )} + \frac{3 d^{2} e x^{n + 1} \left (\frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (\frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (a + b x^{n} + c x^{2 n}\right )^{p} \operatorname{appellf_{1}}{\left (\frac{n + 1}{n},- p,- p,2 + \frac{1}{n},- \frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}},- \frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} \right )}}{n + 1} + \frac{3 d e^{2} x^{2 n + 1} \left (\frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (\frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (a + b x^{n} + c x^{2 n}\right )^{p} \operatorname{appellf_{1}}{\left (2 + \frac{1}{n},- p,- p,3 + \frac{1}{n},- \frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}},- \frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} \right )}}{2 n + 1} + \frac{e^{3} x^{3 n + 1} \left (\frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (\frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} + 1\right )^{- p} \left (a + b x^{n} + c x^{2 n}\right )^{p} \operatorname{appellf_{1}}{\left (3 + \frac{1}{n},- p,- p,4 + \frac{1}{n},- \frac{2 c x^{n}}{b - \sqrt{- 4 a c + b^{2}}},- \frac{2 c x^{n}}{b + \sqrt{- 4 a c + b^{2}}} \right )}}{3 n + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((d+e*x**n)**3*(a+b*x**n+c*x**(2*n))**p,x)

[Out]

d**3*x*(2*c*x**n/(b - sqrt(-4*a*c + b**2)) + 1)**(-p)*(2*c*x**n/(b + sqrt(-4*a*c
 + b**2)) + 1)**(-p)*(a + b*x**n + c*x**(2*n))**p*appellf1(1/n, -p, -p, 1 + 1/n,
 -2*c*x**n/(b - sqrt(-4*a*c + b**2)), -2*c*x**n/(b + sqrt(-4*a*c + b**2))) + 3*d
**2*e*x**(n + 1)*(2*c*x**n/(b - sqrt(-4*a*c + b**2)) + 1)**(-p)*(2*c*x**n/(b + s
qrt(-4*a*c + b**2)) + 1)**(-p)*(a + b*x**n + c*x**(2*n))**p*appellf1((n + 1)/n,
-p, -p, 2 + 1/n, -2*c*x**n/(b - sqrt(-4*a*c + b**2)), -2*c*x**n/(b + sqrt(-4*a*c
 + b**2)))/(n + 1) + 3*d*e**2*x**(2*n + 1)*(2*c*x**n/(b - sqrt(-4*a*c + b**2)) +
 1)**(-p)*(2*c*x**n/(b + sqrt(-4*a*c + b**2)) + 1)**(-p)*(a + b*x**n + c*x**(2*n
))**p*appellf1(2 + 1/n, -p, -p, 3 + 1/n, -2*c*x**n/(b - sqrt(-4*a*c + b**2)), -2
*c*x**n/(b + sqrt(-4*a*c + b**2)))/(2*n + 1) + e**3*x**(3*n + 1)*(2*c*x**n/(b -
sqrt(-4*a*c + b**2)) + 1)**(-p)*(2*c*x**n/(b + sqrt(-4*a*c + b**2)) + 1)**(-p)*(
a + b*x**n + c*x**(2*n))**p*appellf1(3 + 1/n, -p, -p, 4 + 1/n, -2*c*x**n/(b - sq
rt(-4*a*c + b**2)), -2*c*x**n/(b + sqrt(-4*a*c + b**2)))/(3*n + 1)

_______________________________________________________________________________________

Mathematica [B]  time = 24.4185, size = 2025, normalized size = 3.34 \[ \text{Result too large to show} \]

Warning: Unable to verify antiderivative.

[In]  Integrate[(d + e*x^n)^3*(a + b*x^n + c*x^(2*n))^p,x]

[Out]

(3*2^(-1 - p)*c*(b + Sqrt[b^2 - 4*a*c])*d^2*e*(1 + 2*n)*x^(1 + n)*((b - Sqrt[b^2
 - 4*a*c] + 2*c*x^n)/c)^(1 + p)*(-2*a + (-b + Sqrt[b^2 - 4*a*c])*x^n)^2*(a + x^n
*(b + c*x^n))^(-1 + p)*AppellF1[1 + n^(-1), -p, -p, 2 + n^(-1), (-2*c*x^n)/(b +
Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])])/((-b + Sqrt[b^2 - 4*a*c
])*(1 + n)*((b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n)^p*(b + Sqrt[b^2 - 4*a*c] + 2*c*
x^n)*(-2*(a + 2*a*n)*AppellF1[1 + n^(-1), -p, -p, 2 + n^(-1), (-2*c*x^n)/(b + Sq
rt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])] + n*p*x^n*((-b + Sqrt[b^2
- 4*a*c])*AppellF1[2 + n^(-1), 1 - p, -p, 3 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 -
 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])] - (b + Sqrt[b^2 - 4*a*c])*AppellF1
[2 + n^(-1), -p, 1 - p, 3 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n
)/(-b + Sqrt[b^2 - 4*a*c])]))) + (3*2^(-1 - p)*c*(b + Sqrt[b^2 - 4*a*c])*d*e^2*(
1 + 3*n)*x^(1 + 2*n)*((b - Sqrt[b^2 - 4*a*c] + 2*c*x^n)/c)^(1 + p)*(-2*a + (-b +
 Sqrt[b^2 - 4*a*c])*x^n)^2*(a + x^n*(b + c*x^n))^(-1 + p)*AppellF1[2 + n^(-1), -
p, -p, 3 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2
- 4*a*c])])/((-b + Sqrt[b^2 - 4*a*c])*(1 + 2*n)*((b - Sqrt[b^2 - 4*a*c])/(2*c) +
 x^n)^p*(b + Sqrt[b^2 - 4*a*c] + 2*c*x^n)*(-2*(a + 3*a*n)*AppellF1[2 + n^(-1), -
p, -p, 3 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2
- 4*a*c])] + n*p*x^n*((-b + Sqrt[b^2 - 4*a*c])*AppellF1[3 + n^(-1), 1 - p, -p, 4
 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c]
)] - (b + Sqrt[b^2 - 4*a*c])*AppellF1[3 + n^(-1), -p, 1 - p, 4 + n^(-1), (-2*c*x
^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])]))) + (2^(-1 - p
)*c*(b + Sqrt[b^2 - 4*a*c])*e^3*(1 + 4*n)*x^(1 + 3*n)*((b - Sqrt[b^2 - 4*a*c] +
2*c*x^n)/c)^(1 + p)*(-2*a + (-b + Sqrt[b^2 - 4*a*c])*x^n)^2*(a + x^n*(b + c*x^n)
)^(-1 + p)*AppellF1[3 + n^(-1), -p, -p, 4 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4
*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])])/((-b + Sqrt[b^2 - 4*a*c])*(1 + 3*n)
*((b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n)^p*(b + Sqrt[b^2 - 4*a*c] + 2*c*x^n)*(-2*(
a + 4*a*n)*AppellF1[3 + n^(-1), -p, -p, 4 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4
*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])] + n*p*x^n*((-b + Sqrt[b^2 - 4*a*c])*
AppellF1[4 + n^(-1), 1 - p, -p, 5 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]),
(2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])] - (b + Sqrt[b^2 - 4*a*c])*AppellF1[4 + n^(-1
), -p, 1 - p, 5 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sq
rt[b^2 - 4*a*c])]))) - (2^(-1 - 2*p)*(b + Sqrt[b^2 - 4*a*c])*d^3*(1 + n)*x*(-b +
 Sqrt[b^2 - 4*a*c] - 2*c*x^n)*((b - Sqrt[b^2 - 4*a*c] + 2*c*x^n)/c)^p*((b + Sqrt
[b^2 - 4*a*c] + 2*c*x^n)/c)^(-1 + p)*(-2*a + (-b + Sqrt[b^2 - 4*a*c])*x^n)^2*(a
+ x^n*(b + c*x^n))^(-1 + p)*AppellF1[n^(-1), -p, -p, 1 + n^(-1), (-2*c*x^n)/(b +
 Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])])/(c*(-b + Sqrt[b^2 - 4*
a*c])*((b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n)^p*((b + Sqrt[b^2 - 4*a*c])/(2*c) + x
^n)^p*((-b + Sqrt[b^2 - 4*a*c])*n*p*x^n*AppellF1[1 + n^(-1), 1 - p, -p, 2 + n^(-
1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])] - (b
 + Sqrt[b^2 - 4*a*c])*n*p*x^n*AppellF1[1 + n^(-1), -p, 1 - p, 2 + n^(-1), (-2*c*
x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])] - 2*a*(1 + n)*
AppellF1[n^(-1), -p, -p, 1 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^
n)/(-b + Sqrt[b^2 - 4*a*c])]))

_______________________________________________________________________________________

Maple [F]  time = 0.161, size = 0, normalized size = 0. \[ \int \left ( d+e{x}^{n} \right ) ^{3} \left ( a+b{x}^{n}+c{x}^{2\,n} \right ) ^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((d+e*x^n)^3*(a+b*x^n+c*x^(2*n))^p,x)

[Out]

int((d+e*x^n)^3*(a+b*x^n+c*x^(2*n))^p,x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (e x^{n} + d\right )}^{3}{\left (c x^{2 \, n} + b x^{n} + a\right )}^{p}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^n + d)^3*(c*x^(2*n) + b*x^n + a)^p,x, algorithm="maxima")

[Out]

integrate((e*x^n + d)^3*(c*x^(2*n) + b*x^n + a)^p, x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left ({\left (e^{3} x^{3 \, n} + 3 \, d e^{2} x^{2 \, n} + 3 \, d^{2} e x^{n} + d^{3}\right )}{\left (c x^{2 \, n} + b x^{n} + a\right )}^{p}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^n + d)^3*(c*x^(2*n) + b*x^n + a)^p,x, algorithm="fricas")

[Out]

integral((e^3*x^(3*n) + 3*d*e^2*x^(2*n) + 3*d^2*e*x^n + d^3)*(c*x^(2*n) + b*x^n
+ a)^p, x)

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d+e*x**n)**3*(a+b*x**n+c*x**(2*n))**p,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^n + d)^3*(c*x^(2*n) + b*x^n + a)^p,x, algorithm="giac")

[Out]

Exception raised: TypeError